#ifndef TCPSERVER_H
#define TCPSERVER_H

#include <QObject>
#include <QTcpServer>
#include <QList>
#include "tcpserversocket.h"

class TcpServer : public QTcpServer
{
    Q_OBJECT
public:
    TcpServer(QObject *parent, int port);
    QList<TcpServerSocket *> tcpServerSocketList;

signals:
    void updateServer(QString, int);
public slots:
    void updateClients(QString, int);
    void slotDistconnected(int);

protected:
    void incomingConnection(qintptr handle) override;

};

#endif // TCPSERVER_H
